package com.etone.smartAudit.vo.menu;

import com.etone.smartAudit.vo.permission.PermissionSimpleVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: 蒋学伟
 * @create: 2020-06-10 08:42:34
 * @Description MenuVO
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "菜单")
public class MenuVO {

    @ApiModelProperty("菜单ID")
    private Integer id;

    @ApiModelProperty("菜单名称")
    private String title;

    @ApiModelProperty("菜单url")
    private String url;

    @ApiModelProperty("父级菜单")
    private Integer pId;

    @ApiModelProperty("图标")
    private String icon;

    @ApiModelProperty("菜单级别")
    private Integer level;

    @ApiModelProperty("排序")
    private Integer sort;

    @ApiModelProperty("子菜单")
    private List<MenuVO> children;

    @ApiModelProperty("权限")
    private List<PermissionSimpleVO> permissionSimples;

    @ApiModelProperty("是否选中")
    private Boolean selected=false;
}
